import * as Ecs from "framework/entitas/index"

export class <%=ContextName%>Matcher
{
<%
var components = contextData.comps
for (var i = 0; i < components.length; i++) {
var c = components[i] %>
	private static _<%=c.Name%> : Ecs.Matcher
	public static get <%=c.Name%>(){
		if(<%=ContextName%>Matcher._<%=c.Name%>== null)
		{
			<%=ContextName%>Matcher._<%=c.Name%> = Ecs.Matcher.allOf('<%=c.name%>%>')
		}
		return <%=ContextName%>Matcher._<%=c.Name%>
	}

<%}%>
}
